Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 15 - Printer Access Protocol (PAP) / PAP Reference


Options

This section describes the PAP-specific option that you can use with the OTConnect provider function.

The only option that is specific to PAP is the open retry option, which is defined as following:

#define PAP_OPT_OPENRETRY0x2120  /* PAP open retry count */
This option forces PAP to try again to open a connection that PAP has tried once already to establish without success.

In order to use any option with PAP, you must indicate which protocol the option is intended for. To do this, you use a constant for the PAP protocol in the level field of the TOption structure when you specify an option.

#define ATK_PAP   'PAP '
With PAP, you can use the generic OPT_ENABLEEOM, OPT_CHECKSUM and OPT_SERVERSTATUS options, which are further described in the chapter "Option Management" in this book.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996